<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <el-container>
        <el-header>

            <div class="line"></div>
        </el-header>
        <el-container>
            <el-aside width="170px">

                <el-menu
                        default-active="1"
                        class="el-menu-vertical-demo"
                        @open="handleOpen"
                        @close="handleClose">
                    <el-menu-item index="1">
                        <i class="el-icon-menu"></i>
                        <span slot="title">导航一</span>
                    </el-menu-item>
                    <el-menu-item index="2">
                        <i class="el-icon-menu"></i>
                        <span slot="title">导航二</span>
                    </el-menu-item>
                    <el-menu-item index="3">
                        <i class="el-icon-document"></i>
                        <span slot="title">导航三</span>
                    </el-menu-item>
                    <el-menu-item index="4">
                        <i class="el-icon-setting"></i>
                        <span slot="title">导航四</span>
                    </el-menu-item>
                </el-menu>

            </el-aside>
            <el-container>
                <el-main>

                        <template>
                            <div>
                                <iframe
                                        width="100%"
                                        height="100%"
                                        frameborder="0"
                                        src="page/admin/list.html"></iframe>
                            </div>

                        </template>

                </el-main>
                <el-footer>
                    <el-pagination
                            :page-size="20"
                            :pager-count="11"
                            layout="prev, pager, next"
                            :total="1000">
                    </el-pagination>
                </el-footer>
            </el-container>
        </el-container>
    </el-container>
</div>
</body>

<style>
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    }

    #app {
        height: 100%;
    }

    .el-container {
        height: 100%;
    }

    .el-header {
        background-color: #409EFF;
        color: white;
        line-height: 60px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    }

    .el-aside {
        background-color: #545c64;
        color: white;
        height: 100%;
        overflow: hidden;
    }

    .el-main {
        padding: 20px;
        background-color: #f5f7fa;
        height: calc(100% - 60px);
        overflow: auto;
    }

    .el-footer {
        height: 60px;
        background-color: #f5f7fa;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid #e6e6e6;
    }

    .el-menu {
        border-right: none;
    }

    .el-menu-vertical-demo {
        height: 100%;
    }

    iframe {
        width: 100%;
        height: 100%;
        border: none;
        background: white;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .pagination-container {
        padding: 10px 0;
    }
</style>



<script src="../js/axios-0.18.0.js"></script>
<!-- import Vue before Element -->
<script src="https://unpkg.com/vue@2/dist/vue.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    new Vue({
        el: '#app',
        data() {
            return {
                activeIndex: '1',
                activeIndex2: '1',
                //menuActived: '1',
                activeUrl: 'page/admin/list.html',
                menuList: [
                    {
                        id: '1',
                        name: '员工管理',
                        url: 'page/admin/list.html',
                        //icon: 'icon-member'
                    },
                    {
                        id: '2',
                        name: '分类管理',
                        url: 'page/category/list.html',
                        icon: 'icon-category'
                    },
                    {
                        id: '3',
                        name: '菜品管理',
                        url: 'page/food/list.html',
                        icon: 'icon-food'
                    },
                    {
                        id: '4',
                        name: '套餐管理',
                        url: 'page/combo/list.html',
                        icon: 'icon-combo'
                    },
                    {
                        id: '5',
                        name: '订单明细',
                        url: 'page/order/list.html',
                        icon: 'icon-order'
                    }
                ],
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    })
</script>



</html>